package com.eight.uploud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eight.common.pojo.EduCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: qy8-education
 * @description:
 * @author: 平家祥
 * @create: 2023-06-05 11:00
 **/
@Mapper
public interface EduCourseMapper extends BaseMapper<EduCourseMapper> {
    @Select(value = "select c1.* from tb_shoucang_course s1 JOIN edu_course c1 on s1.course_id = c1.id WHERE s1.member_id = #{memberId}")
    List<EduCourse> findByHuiYuanId(String memberId);

}
